<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>Txt2tags User Guide</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
<LINK REL="Start" HREF="index.html">
<LINK REL="Contents" HREF="index.html">
<LINK REL="Prev" HREF="target.html">
<LINK REL="Next" HREF="encoding.html">
<STYLE TYPE="text/css"><!--
BODY { font-family: serif }
H1 { font-family: sans-serif }
H2 { font-family: sans-serif }
H3 { font-family: sans-serif }
H4 { font-family: sans-serif }
H5 { font-family: sans-serif }
H6 { font-family: sans-serif }
SUB { font-size: smaller }
SUP { font-size: smaller }
PRE { font-family: monospace }
--></STYLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="userguide.css"></HEAD>
<BODY>
<A HREF="index.html">Contents</A>
<A HREF="target.html">Previous</A>
<A HREF="encoding.html">Next</A>
<HR NOSHADE>

<H2><A NAME="8_2">%!options</A></H2>
<P> Writing long command lines every time you need to convert a document
 is boring and error prone. The Options setting let the user save all
 the converting options together with the source document. This also
 ensures that the document will always be converted the same way, with
 the same options.</P>
<P> Just write it with no syntax errors, as you were on the real command
 line. But omit the &quot;txt2tags&quot; program call on the beginning, the target
 specification and the source filename from the ending.</P>
<P> For example, if you do use this command line to convert your
 document:</P>
<PRE>
$ txt2tags -t html --toc --toc-level 2 --enum-title file.t2t
</PRE>
<P> You can save yourself from typing pain using this Options setting
 inside the document source:</P>
<PRE>
%!target: html
%!options(html): --toc --toc-level 2 --enum-title
</PRE>
<P> Now the options are registered inside the source file, so you can
 convert it with this simple command:</P>
<PRE>
$ txt2tags file.t2t
</PRE>
<BLOCKQUOTE> Tip for Vim users: To convert the document right inside the
 editor, just run <CODE>:!txt2tags %</CODE></BLOCKQUOTE> <A NAME="setting-encoding">
</A><HR NOSHADE>
<A HREF="index.html">Contents</A>
<A HREF="target.html">Previous</A>
<A HREF="encoding.html">Next</A>
</BODY>
</HTML>
